This is to put state management with state management
https://bugzilla.gnome.org/show_bug.cgi?id=694038
return false;
},
- openTray: function() {
- this._traySummoned = true;
- this._updateState();
- },
-
_onNotificationKeyRelease: function(actor, event) {
if (event.get_key_symbol() == Clutter.KEY_Escape && event.get_state() == 0) {
this._closeNotification();
this._updateState();
},
+ openTray: function() {
+ this._traySummoned = true;
+ this._updateState();
+ },
+
toggle: function() {
this._traySummoned = !this._traySummoned;
this._updateState();